/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 申请房屋Entity
 * @author HHAOYU
 * @version 2019-08-19
 */
public class AskRoom extends DataEntity<AskRoom> {

	public static final String STATUS_ASK = "0";
	public static final String STATUS_PASS = "1";
	public static final String STATUS_REJECT = "2";
	
	private static final long serialVersionUID = 1L;
	private String roomId;		// room_id
	private String customerId;		// customer_id
	private String status;		// status
	private String remark;		// remark

	private Room room;
	private Customer customer;

	public AskRoom() {
		super();
	}

	public AskRoom(String id){
		super(id);
	}

	@Length(min=0, max=32, message="room_id长度必须介于 0 和 32 之间")
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	
	@Length(min=0, max=32, message="customer_id长度必须介于 0 和 32 之间")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	@Length(min=0, max=1, message="status长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=255, message="remark长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
}